{extend name="base" /}
{block name="css"}
{/block}
{block name="js"}
<script src="__ADMIN__/informs/informs.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="layui-tab layui-tab-brief" lay-filter="msgTab">
  <ul class="layui-tab-title">
    <li class="layui-this">举报详情</li>
  </ul>
  <div class="layui-tab-content" style="margin:10px;">
    <div class="layui-tab-item layui-show">
      <!-- 举报信息 -->
    <div class='order-box'>
      <table class='wst-form wst-table-1'>
         <tr>
           <td class='head-ititle'>举报信息</td>
         </tr>
         <tr>
           <th>举报人：</th>
           <td>{$data['userName']}</td>
         </tr>
         <tr>
            <th>举报类型：</th>
            <td>
              {php}$reason = WSTDatas('INFORMS_TYPE',$data['informType']);{/php}
              {$reason['dataName']}
            </td>
         </tr>
        
         <tr>
            <th>举报内容：</th>
            <td class='line-break'>{$data['informContent']}</td>
         </tr>
         <tr>
            <th>附件：</th>
            <td id="photos-inform">
              {if !empty($data['informAnnex'])}
              {volist name="$data['informAnnex']" id="annex"}
                <a href="javascript:void(0)">
                <img  layer-src="__RESOURCE_PATH__/{$annex}" width="100" height="100" src="__RESOURCE_PATH__/{$annex}" />
                </a>
              {/volist}
              {/if}
             </td>
         </tr>

         <tr>
            <th>投诉时间：</th>
            <td>{$data['informTime']}</td>
         </tr>
      </table>
   </div>
  {if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"} 
   <table border='0' class='wst-form wst-table-1' style='margin-top:15px;'>
           <tr>
              <td colspan='2' class='head'>举报结果</td>
           </tr>
           <tr>
              <th width='80'>举报结果：</th>
              <td>
              {if condition="$data['informStatus'] eq 0"}
                                          等待处理
              {elseif condition="$data['informStatus'] eq 1"/}
                                          无效举报
              {elseif condition="$data['informStatus'] eq 2 "/}
                                          有效举报
               {elseif condition="$data['informStatus'] eq 3 "/}
                                          恶意举报
              {/if}
              </td>
           </tr>
           {if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"}
           <tr>
              <th valign='top'>处理信息：</th>
              <td class='line-break'>
               {$data['respondContent']}
              </td>
           </tr>
           {/if}
           {if condition="$data['informStatus'] eq 1 OR $data['informStatus'] eq 2 OR $data['informStatus'] eq 3"}
           <tr>
              <th>处理时间：</th>
              <td>{$data['finalHandleTime']}&nbsp;</td>
           </tr>
           {/if}
           <tr>
              <td colspan='2' style='text-align:center;'>
                <button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
              </td>
           </tr>
        </table>
    {/if}
   <!--举报结果 -->
   {if condition="$data['informStatus'] eq 0"}
   <div class='order-box' style="border-bottom: 1px solid transparent;">
      <table class='wst-form wst-table-1'>
         <tr>
           <td class='head-ititle'>举报结果</td>
         </tr>
       <tr>
          <td align='right' valign='right' width='120'>当前举报流程：</td>
          <td style='color:red'>
              {:WSTLangComplainStatus($data['informStatus'])}
          </td>
       </tr>
           <tr>
           <th>举报结果<font color='red'>*</font>：</th>
           <td class='layui-form'>
             	<li>
             <label>
               <input type='radio' name='informStatus' class='ipt' value='1' title='无效举报--商品会正常销售'/>
             </label>
              </li>
              <li>
             <label>
               <input type='radio' name='informStatus' class='ipt' value='2' title='有效举报--商品将被违规下架'/>
             </label>
              </li>
              <li>
             <label>
               <input type='radio' name='informStatus' class='ipt' value='3' title='恶意举报--该用户所有未处理举报将被取消且将被禁止举报'/>
             </label>
              </li>
           </td>
        </tr>
       <tr>
        <th>处理信息<font color='red'>*</font>：</th>
          <td class='line-break'>
             <textarea id='finalResult' style='height:150px;width:100%' placeholder=''></textarea>
          </td>
       </tr>
   
       
      <tr>
         <td colspan='2' align='center' >
          <button type="button" class="btn btn-primary btn-mright"style="margin-top:10px ;" onclick='javascript:finalHandle({$data["informId"]},{$p})'><i class="fa fa-gavel"></i>
处&nbsp;理</button>
          <button type="button" class="btn"style="margin-top:10px ;" onclick="javascript:location.href='{:Url(\'admin/informs/index\',\'p=\'.$p)}'"><i class="fa fa-angle-double-left"></i>返&nbsp;回</button>
         </td>
      </tr>
        
      </table>
    </div>
    {/if}
  </div>
<div>
   </div>
</div>
</div>
<script>
$(function(){
  parent.showImg({photos: $('#photos-inform')});
});
</script>

{/block}